package xyz.csmcool.imchat.feignclient;

import org.springframework.stereotype.Component;
import xyz.csmcool.imutil.utils.ResultTool;
import xyz.csmcool.imutil.webVo.ResultCode;
import xyz.csmcool.imutil.webVo.ResultVo;

import java.util.Map;

/**
 * @author 什锦
 * @Package xyz.csmcool.imchat.feignclient
 * @since 2022/8/24 13:07
 */
@Component
public class RoomFileDegradeFeignClient implements RoomClient{
    @Override
    public ResultVo<Map<String, Integer>> isRoomUser(Integer roomId, Integer uid) {
        return ResultTool.fail(ResultCode.CUSTOM_FAIL.setMessage("获取信息失败了"));
    }

    /**
     * 是否是我的朋友
     *
     * @param uid
     * @param fid
     * @return
     */
    @Override
    public ResultVo<Map<String, Boolean>> checkIsFriend(Integer uid, Integer fid) {
        return ResultTool.fail(ResultCode.CUSTOM_FAIL.setMessage("获取信息失败了"));
    }

    /**
     * 是否是聊天室创建人
     *
     * @param roomId
     * @param uid
     * @return
     */
    @Override
    public ResultVo isMyRoom(Integer roomId, Integer uid) {
        return ResultTool.fail(ResultCode.CUSTOM_FAIL.setMessage("获取信息失败了"));
    }
}
